package com.hzj.controller.api;

import com.hzj.service.UserLoginRecordService;
import com.hzj.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("/api/user/")
public class HYController {
    @Autowired
    UserLoginRecordService urs;

    //4.HY查询用户登录次数的(查询user_login_record所有记录数), 返回json数据:
    @PostMapping("selectUserLoginRecord")
    public Integer selectUserLoginRecord() {
        int num = urs.selectCount();
        return num;
    }
}
